#ifndef _1WIRE_H
#define _1WIRE_H


#include <avr/io.h>

// definicje
#define PIN_1WIRE 0
#define PORT_1WIRE	PORTA
#define OUT_1WIRE_LOW 	PORT_1WIRE&=~0x0f;
#define OUT_1WIRE_HIG	PORT_1WIRE|=0x0f,
#define DIR_1WIRE_IN	DDRA&=~(0x0f);
#define DIR_1WIRE_OUT	DDRA|=0x0f;
void pomiar_temp(void);
void kontrola_wyniku(uint8_t *, int16_t * , uint8_t *);
void wyluskaj_pomiar (uint8_t * tablica_z_pomiarem,uint8_t* gotowy_wynik, uint8_t bit_odczytu);


 extern int16_t onewire_wynik[];
 extern uint8_t ucReset;


#endif
